# %W% %G% %U%
#
# 1987 makefile

SHELL=/bin/sh
WINNERS=heckbert wall westley hines korn biggar lievaart lievaart2

# for System V style systems
OPSYS=-Dindex=strchr
# for BSD style systems
#OPSYS=

all: ${WINNERS}

heckbert: heckbert.c
	cc ${OPSYS} $? -o $@
wall: wall.c
	cc $? -o $@
westley: westley.c
	cc $? -o $@
hines: hines.c
	cc $? -o $@
korn: korn.c
	cc $? -o $@
biggar: biggar.c
	cc -DC="R>0" -DI="if(T)O" -DO="c=write(1,&c,1);" \
	    -DP="main(){X}" -DR="read(0,&c,1)" -DT="c!=015" \
	    -DW="while(C)I" -DX="char c;W" $? -o $@
lievaart: lievaart.c
	cc $? -o $@
# not an official entry
lievaart2: lievaart2.c
	cc $? -o $@

clean:
	rm -f core
clobber: clean
	rm -f ${WINNERS}
install: all
	@echo are you kidding'??'
